package com.kitten.chatglmsdk.executor;

import com.kitten.chatglmsdk.model.*;
import okhttp3.sse.EventSource;
import okhttp3.sse.EventSourceListener;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;

public interface Executor {
    EventSource completions(ChatCompletionRequest var1, EventSourceListener var2) throws Exception;

    CompletableFuture<String> completions(ChatCompletionRequest var1) throws InterruptedException;

    ChatCompletionSyncResponse completionsSync(ChatCompletionRequest var1) throws Exception;

    // 图像生成接口
    ImageCompletionResponse imageGeneration(ImageCompletionRequest request);
}
